/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.ruralLibrary.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 推荐位管理表
 *
 * @author pig
 * @date 2023-11-09 10:58:59
 */
@Data
@TableName("recommend_manage")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "推荐位管理表")
public class RecommendManageEntity extends Model<RecommendManageEntity> {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 资源id
	*/
    @Schema(description="资源id")
    private Long resourceId;

	/**
	* 资源名称
	*/
    @Schema(description="资源名称")
    private String resourceName;

	/**
	* 封面
	*/
    @Schema(description="封面")
    private String cover;

	/**
	* 顺序
	*/
    @Schema(description="顺序")
    private Long position;

	/**
	* 资源状态 0：禁用，1：使用
	*/
    @Schema(description="资源状态 0：禁用，1：使用")
    private String state;

	/**
	* 作者
	*/
    @Schema(description="作者")
    private String author;

	/**
	* 大类id
	*/
    @Schema(description="大类id")
    private Long dataTypeId;

	/**
	* 简介
	*/
    @Schema(description="简介")
    private String briefIntroduction;

	/**
	* 中图法id
	*/
    @Schema(description="中图法id")
    private Long bookTypeId;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

}
